import {createSlice} from '@reduxjs/toolkit'

const countSlice =createSlice({
  name:'count',
  initialState:{
      numMoude:5,
      list:['阿达','asd','dasd','ad']
  },

  reducers:{
      addNumber(state,actions){
        state.numMoude+=1
      }
  }

})

export const {addNumber} =countSlice.actions;

export default countSlice;